<div class="stores view">
<h2><?php  echo __('Store'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($store['Store']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Addr'); ?></dt>
		<dd>
			<?php echo h($store['Store']['addr']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($store['Store']['created']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Latitude'); ?></dt>
		<dd>
			<?php echo h($store['Store']['latitude']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Longitude'); ?></dt>
		<dd>
			<?php echo h($store['Store']['longitude']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($store['Store']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Status'); ?></dt>
		<dd>
			<?php echo h($store['Store']['status']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Tel'); ?></dt>
		<dd>
			<?php echo h($store['Store']['tel']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Tel Area'); ?></dt>
		<dd>
			<?php echo h($store['Store']['tel_area']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Logo Path'); ?></dt>
		<dd>
			<?php echo h($store['Store']['logo_path']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Index Comment'); ?></dt>
		<dd>
			<?php echo h($store['Store']['index_comment']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Index Img Path'); ?></dt>
		<dd>
			<?php echo h($store['Store']['index_img_path']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Store'), array('action' => 'edit', $store['Store']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Store'), array('action' => 'delete', $store['Store']['id']), null, __('Are you sure you want to delete # %s?', $store['Store']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Stores'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Store'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Promodetails'), array('controller' => 'promodetails', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Promodetail'), array('controller' => 'promodetails', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Promos'), array('controller' => 'promos', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Promo'), array('controller' => 'promos', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Store Categories'), array('controller' => 'store_categories', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Store Category'), array('controller' => 'store_categories', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Promodetails'); ?></h3>
	<?php if (!empty($store['Promodetail'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Title'); ?></th>
		<th><?php echo __('Content'); ?></th>
		<th><?php echo __('Pic1'); ?></th>
		<th><?php echo __('Pic2'); ?></th>
		<th><?php echo __('Pic3'); ?></th>
		<th><?php echo __('Pic4'); ?></th>
		<th><?php echo __('Pic5'); ?></th>
		<th><?php echo __('Store Id'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($store['Promodetail'] as $promodetail): ?>
		<tr>
			<td><?php echo $promodetail['id']; ?></td>
			<td><?php echo $promodetail['title']; ?></td>
			<td><?php echo $promodetail['content']; ?></td>
			<td><?php echo $promodetail['pic1']; ?></td>
			<td><?php echo $promodetail['pic2']; ?></td>
			<td><?php echo $promodetail['pic3']; ?></td>
			<td><?php echo $promodetail['pic4']; ?></td>
			<td><?php echo $promodetail['pic5']; ?></td>
			<td><?php echo $promodetail['store_id']; ?></td>
			<td><?php echo $promodetail['created']; ?></td>
			<td><?php echo $promodetail['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'promodetails', 'action' => 'view', $promodetail['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'promodetails', 'action' => 'edit', $promodetail['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'promodetails', 'action' => 'delete', $promodetail['id']), null, __('Are you sure you want to delete # %s?', $promodetail['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Promodetail'), array('controller' => 'promodetails', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Promos'); ?></h3>
	<?php if (!empty($store['Promo'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Title'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th><?php echo __('Begin Date'); ?></th>
		<th><?php echo __('End Date'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Store Id'); ?></th>
		<th><?php echo __('Content'); ?></th>
		<th><?php echo __('NeedPoints'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($store['Promo'] as $promo): ?>
		<tr>
			<td><?php echo $promo['id']; ?></td>
			<td><?php echo $promo['title']; ?></td>
			<td><?php echo $promo['created']; ?></td>
			<td><?php echo $promo['modified']; ?></td>
			<td><?php echo $promo['begin_date']; ?></td>
			<td><?php echo $promo['end_date']; ?></td>
			<td><?php echo $promo['user_id']; ?></td>
			<td><?php echo $promo['store_id']; ?></td>
			<td><?php echo $promo['content']; ?></td>
			<td><?php echo $promo['needPoints']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'promos', 'action' => 'view', $promo['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'promos', 'action' => 'edit', $promo['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'promos', 'action' => 'delete', $promo['id']), null, __('Are you sure you want to delete # %s?', $promo['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Promo'), array('controller' => 'promos', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Store Categories'); ?></h3>
	<?php if (!empty($store['StoreCategory'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Store Id'); ?></th>
		<th><?php echo __('Category Id'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($store['StoreCategory'] as $storeCategory): ?>
		<tr>
			<td><?php echo $storeCategory['store_id']; ?></td>
			<td><?php echo $storeCategory['category_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'store_categories', 'action' => 'view', $storeCategory['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'store_categories', 'action' => 'edit', $storeCategory['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'store_categories', 'action' => 'delete', $storeCategory['id']), null, __('Are you sure you want to delete # %s?', $storeCategory['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Store Category'), array('controller' => 'store_categories', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
